﻿/* Windows.Forms.Draw 扩展类
 */

/*待测试*/
namespace LSLib.Windows.Forms
{
    using System.Drawing;
    using System.Windows.Forms;

    public class DrawEx
    {
        /// <summary>绘制：边框
        /// </summary>
        /// <param name="g">Graphics对象</param>
        /// <param name="rect">绘制区域</param>
        /// <param name="color">边框颜色</param>
        /// <param name="width">边框宽度</param>
        /// <param name="style">边框样式</param>
        public static void Paint_DrawBorder(Graphics g, Rectangle rect, Color color, int width, ButtonBorderStyle style)
        {
            ControlPaint.DrawBorder(g, rect,
                /*left  */color, width, style,
                /*top   */color, width, style,
                /*right */color, width, style,
                /*bottom*/color, width, style);
        }

    }
}
